<template>
	<view class="all">
		<view class="banner_detail">
			<view class="search">
				<u--input
					    placeholder="搜索店铺或者商品"
					    prefixIcon="search"
					    prefixIconStyle="font-size: 22px;color: #909399"
						border="bottom "
						:customStyle="{height: '60rpx'}"
					></u--input>
					<view class="btn">
						搜索
					</view>
			</view>
		<view class="detail" v-for="item in 3">
			<view class="food_item" @click="goFood" >
				<view class="lf">
					<image src="/static/index/food.png" mode=""></image>
				</view>
				<view class="rg">
					<view class="name">成都担担面</view>
					<view class="sale">月售1345单</view>
					<view class="out">
						<text>起价：</text>
						<text style="color: #ED2121 ;">￥9.9</text>
						<text style="margin-left: 20rpx;">配送：</text>
						<text style="color: #ED2121 ;">￥1</text>
						</view>
				</view>
				<view class="time">
					<view class="state">
						营业中
					</view>
					<div class="hour">
						36分钟
					</div>
				</view>
			</view>
			<view class="show_bot">
				<div class="count_deal" v-for="item in 3">
					<div class="img_deal">
						<image src="/static/index/food.png" mode=""></image>
					</div>
					<view class="food_name">
						花甲米线
					</view>
					<view class="money">
						￥11
					</view>
				</div>
				
			</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
		goFood() {
			uni.navigateTo({
				url:'/SubPages/placeorder/wx-placeorder'
			})
		}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #f4f4f4;
	}
	.search {
		background-color: #fff;
		margin: 20rpx;
		border-radius: 20rpx;
		display: flex;
		align-items: center;
		.btn {
			background-color: #F5AC3C;
			color: #fff;
			margin-right: 20rpx;
			border-radius: 10rpx;
			padding: 10rpx 20rpx;
			font-size: 28rpx;
		}
	}	
	.banner_detail {
		padding-top: 5rpx;
		height: 100vh;
		background: linear-gradient( #F8C271,#f4f4f4);
	}
	.detail {
		margin: 0 20rpx;
		border-radius: 20rpx;
		background-color: #fff;
		margin-bottom: 15rpx;
		padding: 20rpx 25rpx;
		.food_item {
			display: flex;
			align-items: center;
			padding-bottom: 25rpx;
			.lf {
				width: 20%;
				display: flex;
				justify-content: center;
				image {
					height: 125rpx;
					width: 125rpx;
					border-radius: 10rpx;
				}
			}
			.rg {
				width: 60%;
				display: flex;
				flex-direction: column;
				font-size: 24rpx;
				margin-left: 20rpx;
				.name {
					font-size: 28rpx;
				}
				.sale {
					margin: 10rpx 0;
					color: #aaa;
				}
				.out {
					color: #aaa;
				}
			}
			.time {
				// width: 20%;
				font-size: 24rpx;
				.state {
					border: 1rpx solid #55E378;
					padding: 5rpx 15rpx;
					border-radius: 10rpx;
				}
				.hour {
					color: #aaa;
					padding: 5rpx 15rpx;
				}
			}
		}
		.show_bot {
			display: flex;
			justify-content: space-around;
			padding-left: 20%;
			// border-bottom: 1rpx solid #f4f4f4;
			// padding-bottom: 20rpx;
			.count_deal {
				// text-align: center;
			}
			.img_deal {
				image {
					width: 130rpx;
					height: 130rpx;
					border-radius: 10rpx;
				}
			}
			.food_name {
				font-size: 24rpx;
				color: #aaa;
			}
			.money {
				color: #ED2121 ;
				font-size: 24rpx;
			}
		}
	}
</style>
